package com.example.invoke.extend.bootstrap;

import com.example.invoke.xsd.xml.CustomConfig;

public class CommonBootStrap implements BootStrap {

    private static CustomConfig customConfig;

    @Override
    public void start() {
        System.out.println("CommonBootStrap--start");
        System.out.println("自定义服务启动中。。。。。");

        ServerBoot serverBoot = new ServerBoot(customConfig);
        serverBoot.start();
    }

    public static void setCustomConfig(CustomConfig customConfig) {
        CommonBootStrap.customConfig = customConfig;
    }
}
